package com.tjsiqi.Vo;

import com.tjsiqi.util.DateDiff;
import com.tjsiqi.util.DateTimeUtil;
import lombok.*;

import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class WeighTruckMVo {

    //车牌id
    private String truckid;

    //生产厂家
    private String provideunit;

    //搅拌站
    private String receiveunit;

    //首次进榜时间
    private Date T_Empty;

    //出榜时间
    private Date T_Full;

    //时间差
    private String tdiff;

    //趟次
    private Integer sumnub;


    public String gettEmpty() {
        return DateTimeUtil.dateToStr(T_Empty,"MM月dd日HH:mm");
    }


    public String gettFull() {
        return DateTimeUtil.dateToStr(T_Full,"MM月dd日HH:mm");
    }


    public String getTdiff() {
        return DateDiff.dateDiff(this.gettFull(),this.gettEmpty(),"MM月dd日HH:mm","").toString();
    }



}
